import {
	request,
	get,
	post
} from './request.js';


export default {
	/**
	 * 获取协议文章
	 */
	getAgreementArticle: data => post("/api/xilumarket/singlepage/article", data, {
		showToast: false
	}),
	/**
	 * 系统配置
	 */
	sysConfig: data => post('/api/user/sysConfig', data, {
		showToast: false
	}),
	/**
	 * 用户登录: 手机号登录 /账号登录 
	 */
	mobilelogin: data => post('/api/user/mobilelogin', data, {
		showToast: false
	}),
	/**
	 * 帐密登录
	 */
	login: data => post('/api/user/agentlogin', data, {
		showToast: false
	}),
	/**
	 * 分享配置
	 */
	getShareConfig: data => post("/api/user/getParentData", data, {
		showToast: false
	}),
	/**
	 * 提交充值
	 */
	submit: data => post("/api/recharge/submit", data, {
		showToast: false
	}),
	/**
	 * 查询余额
	 */
	getMoneylog: data => post('/api/recharge/dailimoneyLog', data, {
		showToast: false
	}),
	/**
	 * 用户信息
	 */
	getUserInfo: data => post("/api/user/userinfo", data, {
		showToast: false
	}),
	
	
	/**
	 * 发送验证码
	 */
	sendCode: data => post('/api/sms/send', data, {
		showToast: true
	}),
	/**
	 * 密码重置
	 */
	resetPassword: data => post("/api/user/resetpwd", data, {
		showToast: true
	}),

	/**
	 * 获取统计
	 */
	getAgentStatistics: data => post('/api/user/agentStatistics', data, {
		showToast: false
	}),
	/**
	 * 全部代理商列表
	 */
	getAgentList: data => post('/api/money/getAgentList', data, {
		showToast: false
	}),

	/**
	 * 计费规则
	 */
	getAgentRuleData: data => post('/api/user/agentRuleData', data, {
		showToast: false
	}),
	/**
	 * 设置计费规则
	 */
	setAgentRuleData: data => post('/api/user/setAgentRule', data, {
		showToast: true
	}),
	//获取新人配置的VIp天数
	getAgentNewday:data => post('/api/user/getAgent_day', data, {
		showToast: false
	}),
	/**
	 * 添加用户
	 */
	addUser: data => post("/api/user/addUser", data, {
		showToast: true
	}),
	/**
	 * 获取用户列表
	 */
	getUserList: data => post('/api/user/getUserList', data, {
		showToast: false
	}),
	/**
	 * 全部代理商列表
	 */
	getAgentUserList: data => post('/api/user/getAgentUserList', data, {
		showToast: false
	}),
	/**
	 * 我的代理商列表
	 */
	getSelfUserList: data => post('/api/user/getSelfUserList', data, {
		showToast: false
	}),
	/**
	 * 修改用户信息
	 */
	updateUser: data => post('/api/user/updateUser', data, {
		showToast: false
	}),
	/**
	 * 代理/商家订单列表 
	 */
	getAgentOrder: data => post("/api/user/getAgentOrder", data, {
		showToast: false
	}),
	/**
	 * 用户提现 
	 */
	withdraw: data => post('/api/user/withdraw', data, {
		showToast: true
	}),
	/**
	 * 提现记录 
	 */
	withdrawlog: data => post('/api/user/withdrawlog', data, {
		showToast: false
	}),
	/**
	 * 获取折线数据
	 */
	getLastMonthsIncome: data => post('/api/money/getLastMonthsIncome', data, {
		showToast: false
	}),
	/**
	 * 收入概览
	 */
	getCurrentIncome: data => post('/api/money/current', data, {
		showToast: false
	}),
	/**
	 * 收入数据
	 */
	getIncomeDate: data => post('/api/money/getIncome', data, {
		showToast: false
	}),
	/**
	 * 获取使用记录
	 */
	getUsageRecord: data => post('/api/money/getUseLog', data, {
		showToast: false
	}),
	/**
	 * 导出使用记录
	 */
	downloadUseLog: data => post('/api/money/downloadUseLog', data, {
		showToast: false
	}),
	/**
	 * 日报
	 */
	dailyOrder: data => post('/api/money/dailyOrder', data, {
		showToast: false
	}),
	/**
	 * 月报
	 */
	monthlyOrder: data => post('/api/money/monthlyOrder', data, {
		showToast: false
	}),
	addDevice: data => post('/api/xilumarket/user/addDevice', data, {
		showToast: false
	}),
	getDeviceList: data => post('/api/xilumarket/user/deviceList', data, {
		showToast: false
	}),
	getDeviceLogList: data => post('/api/xilumarket/user/deviceLogList', data, {
		showToast: false
	}),
}